Skip to content

fix: require explicit share permission for bulk submission endpoints#3290

Merged
Chartman123 merged 2 commits intomainfrom
fix/guard-bulk-submission-actions
Apr 14, 2026
Merged

fix: require explicit share permission for bulk submission endpoints#3290
Chartman123 merged 2 commits intomainfrom
fix/guard-bulk-submission-actions

Conversation

@pringelmann
Copy link
Copy Markdown
Collaborator

The bulk submission endpoints (deleteAllSubmissions, etc.) previously relied on the form-level allowEditSubmissions flag to gate access, which meant a user with only submit permission could reach them if that flag was enabled. Align them with the single-item endpoint and require the explicit share-level permission instead.

Add permission guard to deleteAllSubmissions() to verify the user
holds the required share-level permission, matching the pattern
already used by the single-item endpoint.
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Chartman123
Copy link
Copy Markdown
Collaborator

/backport to stable5.2

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Apr 14, 2026
@Chartman123 Chartman123 merged commit d237027 into main Apr 14, 2026
58 checks passed
@Chartman123 Chartman123 deleted the fix/guard-bulk-submission-actions branch April 14, 2026 07:47
@backportbot
Copy link
Copy Markdown

backportbot bot commented Apr 14, 2026

The backport to stable5.2 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable5.2
git pull origin stable5.2

# Create the new backport branch
git checkout -b backport/3290/stable5.2

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick ae7e5b54 60391131

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/3290/stable5.2

Error: Failed to cherry pick commits: error: no cherry-pick or revert in progress
fatal: cherry-pick failed


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

pringelmann added a commit that referenced this pull request Apr 14, 2026
…3290)

* fix: require explicit share permission for bulk submission actions

Add permission guard to deleteAllSubmissions() to verify the user
holds the required share-level permission, matching the pattern
already used by the single-item endpoint.
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>

* PR feedback
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>

---------

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Chartman123 pushed a commit that referenced this pull request Apr 14, 2026
…n endpoints (#3292)

fix: require explicit share permission for bulk submission endpoints (#3290)

* fix: require explicit share permission for bulk submission actions

Add permission guard to deleteAllSubmissions() to verify the user
holds the required share-level permission, matching the pattern
already used by the single-item endpoint.
-e


* PR feedback
-e


---------

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews backport-request Pending backport by the backport-bot feature: 📊 responses & statistics

Projects

Development

Successfully merging this pull request may close these issues.

2 participants